package com.ztc.ZtcDistributionRatio.service;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ztc.ZtcDistributionRatio.bean.ZtcDistributionRatio;
import com.ztc.ZtcDistributionRatio.dao.ZtcDistributionRatioDao; 
@Service("ZtcDistributionRatio")
public class ZtcDistributionRatioManager{
    @Autowired
    ZtcDistributionRatioDao ztcDistributionRatioDao;
    public String save(ZtcDistributionRatio ztcDistributionRatio) {
    	return ztcDistributionRatioDao.save(ztcDistributionRatio);
    }
    public List<ZtcDistributionRatio> getAll(){
    	List<ZtcDistributionRatio> ztcDistributionRatios=ztcDistributionRatioDao.getAllZtcDistributionRatios();
    	return ztcDistributionRatios;
    }
    public List<ZtcDistributionRatio> searchInfoEquals(String applicableCondition){
        List<ZtcDistributionRatio> list= ztcDistributionRatioDao.searchInfoEquals(applicableCondition);
        return list;
    }
    public boolean delete(String id){
        return ztcDistributionRatioDao.delete(id);
    }
	public String update(ZtcDistributionRatio ztcDistributionRatio) {
		return ztcDistributionRatioDao.update(ztcDistributionRatio);
	}
}
